package com.xtzn.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xtzn.mapper.INoReturnAllianceMapper;
import com.xtzn.mapper.entity.NoReturnAlliance;
import com.xtzn.service.INoReturnAllianceService;

/**
 * 功能描述: <br>
 * **
 * 
 * @author zyw
 * @version [版本号, 2018年4月23日]
 */
@Service
public class NoReturnAllianceServiceImpl implements INoReturnAllianceService {

	@Autowired
	private INoReturnAllianceMapper noReturnAllianceDao;
	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月23日]
	 */
	@Override
	public List<NoReturnAlliance> selectNoReturnAllianceByPage(Integer userId, Integer skips, Integer pageSize) {
		// TODO Auto-generated method stub
		return noReturnAllianceDao.selectNoReturnAllianceByPage(userId, skips, pageSize);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月23日]
	 */
	@Override
	public Integer selectCount(Integer userId) {
		// TODO Auto-generated method stub
		return noReturnAllianceDao.selectCount(userId);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月23日]
	 */
	@Override
	public int deleteBatchById(List<Integer> list) {
		// TODO Auto-generated method stub
		return noReturnAllianceDao.deleteBatchById(list);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月23日]
	 */
	@Override
	public int insertNoReturnAlliance(List<String> list,Integer userId) {
		// TODO Auto-generated method stub
		return noReturnAllianceDao.insertNoReturnAlliance(list,userId);
	}

	/**
	 * 功能描述: <br>
	 * **
	 *
	 * @author zyw
	 * @version [版本号, 2018年4月25日]
	 */
	@Override
	public String selectNoReturnAllianceName(Integer userId, String affiliateAccountName) {
		// TODO Auto-generated method stub
		return noReturnAllianceDao.selectNoReturnAllianceName(userId, affiliateAccountName);
	}

}
